<template>
  <div class="datashow">
    <div class="affair">
      <div class="affair-title">
        <div class="title">
          <img class="img" src="../../assets/index/datalist.png" alt="" />
          数据列表
        </div>
        <slot name="button"> </slot>
      </div>
      <slot name="form"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'datashow',

  components: {},

  data() {
    return {}
  },

  mounted() {},

  methods: {},
}
</script>

<style scoped>
.datashow {
  width: 100%;
}
.img {
  width: 20px;
  height: 20px;
  padding-top: 10px;
}
.affair {
  width: 98%;
  /* height: 200px; */
  height: auto;
  margin-top: 20px;
  margin-left: 15px;
  margin-right: 150px;
  border: 1px solid #e4e4e4;
  background-color: white;
}
.affair-title {
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  height: 50px;
  line-height: 50px;
  color: #666666;
  font-size: 15px;
  font-weight: 600;
  background-color: #f3f3f3;
}
.title {
  width: 200px;
}
</style>
